<template>
	<view class="content">
		
		<view style="z-index: 999; position: fixed;width: 100%;height: 100%;display: flex;justify-content: center; background-color: rgba(0,0,0,0.3);"  v-if="isShowDialog">
		<view class="index_dialog" @click="isShowDialog=false">
			<view class="index_imag" @click="isShowDialog=false">
				<image class="dialog_banner" src="../../static/images/icon/success_icon.png" mode=""></image>
			</view>
			<view class="dialog_text">
				<text class="dialog_icon">恭喜预约成功</text>
			</view>
		</view>
		</view>
		
		
		<swiper  class="banner-swiper" autoplay="true" >
			<swiper-item>
				<image class="banner-image" src="../../static/images/common/yuyue.png" mode="aspectFit"></image>
			</swiper-item>
		</swiper>
		<view class="letter">楼盘名称</view>
		<view class="input-box"><input class="input" type="text" placeholder="融圣国际" /></view>
		<view class="letter">预约类型</view>
		<picker mode="selector" :range="list" @change="pick($event)" :value="index">
			<view class="input-box">
				<view class="input">{{list[index]}}</view>
				<image class="image" src="../../static/images/icon/right_icon.png"></image>
			</view>
		</picker>
		<view class="letter">户&emsp;&emsp;型</view>
		<view class="input-box">
		<input class="input" type="text" placeholder="150" /><text class="unit">(m²)</text></view>
		<view class="letter">姓&emsp;&emsp;名</view>
		<view class="input-box"><input class="input" type="text" placeholder="刘芳" /></view>
		<view class="letter">联系方式</view>
		<view class="input-box">
		<input class="input" type="text" placeholder="123456789123" /></view>
		<view class="letter">微信号码</view>
		<view class="input-box">
			<input class="input" type="text" placeholder="123456789123" />
		</view>
		<view class="contents"  @click="isShowDialog=true">
			<button type="primary" class="button-text">确定预约</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				list: ['验房', '微改报价', '设计', '拎包入住'],
			index:0,
				isShowDialog:false
			}
			
		},
		methods:{
			pick(e){
				this.index=e.target.value
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		width: 100%;
		height: 100%;
		background-color: #f5f5f5;
		display: flex;
		flex-direction: column;
		.index_dialog{
				width: 300rpx;
				height: 228rpx;
				background: #FFFFFF;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				align-content: center;
				margin-top: 630rpx;
				margin-left: 80rpx;
				border-radius: 18rpx;
				.index_imag{
					width: 136rpx;
					height: 136rpx;
					margin-top: 20rpx;
					margin-bottom: 12rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					margin-left: 0rpx;
					padding-left: 0rpx;
				}
				.dialog_banner{
					width:90%;
					height:100%;
				}
				.dialog_text{
					margin-top: 0rpx;
					margin-bottom: 40rpx;
					width:240rpx;
					height: 40rpx;
					margin-left: 10rpx;
					margin-right: 15rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
				}
				.dialog_icon text{
					margin-bottom: 20rpx;
					
				}
			}
	}
	.banner-swiper{
		height: 450rpx;
		width: 100%;
	}
	.banner-image{
		width: 100%;
		height: 100%;
	}
	.letter{
		position: relative;
		left: 80rpx;
		top: 64rpx;
		width: 112rpx;
		height: 40rpx;
		font-size: 28rpx;
		font-weight: 500;
		text-align: center;
		color: #666666;
		line-height: 28rpx;
	}
	.input-box{
		position: relative;
		left: 230rpx;
		top: 18rpx;
		width: 486rpx;
		height: 60rpx;
		background: #FFFFFF;
		border: 2rpx solid rgba(0,0,0,0.10);
		border-radius: 8rpx;
	}
	.input{
		position: relative;
		left: 28rpx;
		top: 15rpx;
		font-size: 24rpx;
		font-weight: 700;
		color: #333333;
		line-height: 24rpx;
	}
	.image{
		position: absolute;
		order: 0.2;
		right: 8rpx;
		width: 32rpx;
		height: 32rpx;
		top: 0;
		bottom: 0;
		margin: auto;
	}
	.unit{
		position: absolute;
		opacity: 0.2;
		right: 8rpx;
		top: 13rpx;
		bottom: 0rpx;
		margin: auto;
		font-weight: 700;
		font-size: 30rpx;
	}
	.contents{
		width: 100vw;
		bottom: 128rpx;
		box-sizing: content-box;//盒子模型
		margin-top: 40px;
		margin-bottom: 40px;
	}
	.button-text{
		position: relative;
		/* left: 10rpx;
		top: 122rpx; */
		width: 328rpx;
		height: 80rpx;
		text-align: center;
		line-height: 80rpx;
		background: #3D9C36;
		border-radius: 8rpx;
	}
</style>
